package com.wisdytech.ccdserver.common.error;

import com.wisdytech.common.execption.BaseErrorCode;

/**
 * @Classname QmErrorCode
 * @Date 2021/9/22 18:07
 * @Created by dailibo
 */
public enum QmErrorCode implements BaseErrorCode {

    GET_DICT_VALUE_ERROR("0101000","获取字典信息失败！"),
    PICK_LIST_ERROR("0101001","生成单据编号失败！"),
    MATERIAL_NOT_EXIST_ERROR("0101002","物料不存在！"),
    SAVE_MATERIAL_BATCH_ERROR("0101003","保存批次信息失败！"),
    MATERIAL_INSPECTION_SCHAME_ERROR("0101004","此物料未配置检验方案！"),
    VAR_CONFIG_ERROR("0101005","获取配置项失败！"),
    MATERIAL_INSPECTION_ITEM_ERROR("0101006","此物料未配置检验项！"),
    MATERIAL_INSPECTION_SAMPLE_ERROR("0101007","此物料未配置抽样方案！"),
    MATERIAL_INSPECTION_STANDARD_ERROR("0101008","此物料未配置检验标准！"),
    QM_UPDATE_SCRAP_ERROR("0601069","%s更新后的报废数量不能大于完成数量-(投料数量+领料数量)！")
    ;

    private String code;
    private String desc;

    private QmErrorCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String msg) {
        this.desc = msg;
    }
}
